# Contributor: gay <gay@disroot.org>
# Maintainer: gay <gay@disroot.org>
pkgname=qpdfview
pkgver=0.5
pkgrel=0
pkgdesc="A tabbed PDF viewer using the poppler library."
url="https://launchpad.net/qpdfview"
arch="all !riscv64"
license="GPL-2.0-or-later"
options="!check"
makedepends="
	cups-dev
	djvulibre-dev
	file-dev
	libspectre-dev
	poppler-qt5-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	"
subpackages="$pkgname-doc"
source="https://launchpad.net/qpdfview/trunk/$pkgver.0/+download/qpdfview-$pkgver.tar.gz"

prepare() {
	default_prepare
	lrelease-qt5 qpdfview.pro
}

build() {
	qmake-qt5 qpdfview.pro
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
1b6b479bb42f4568c21b5f6cb0c552c4323739ba9fe46cea80cc199f48b0b49a278e0a2fb0d21f83bafb467e43dd37352b99ef41795d140220bb82d704e03926  qpdfview-0.5.tar.gz
"
